<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>vue条件渲染</title>
</head>
<body>
  <script src="./js/vue2.js"></script>
  <div id="app">
    <!-- v-if条件渲染 -->
    <div v-if="flag">v-if</div>


    <!-- v-show条件渲染 -->
    <div v-show="flag">v-show</div>
  </div>
</body>
</html>
<script>
  var app = new Vue({
    el:'#app',
    data: {
      flag: true,
    }
  });
</script>